PI-2472: Test for AreaWeightedRegridder#3604
Merged
stephenworsley merged 4 commits intoSciTools:area_weighted_regriddingfrom Dec 17, 2019
Merged
PI-2472: Test for AreaWeightedRegridder#3604stephenworsley merged 4 commits intoSciTools:area_weighted_regriddingfrom
stephenworsley merged 4 commits intoSciTools:area_weighted_regriddingfrom
Conversation
Contributor
|
These tollerances seem quite large. Does the current behaviour of AreaWeightedRegridder require similar tolerances for this data? |
Contributor
Author
|
The tests for regrid_area_weighted_rectilinear_src_and_grid removed the coord system and units so it is no longer spherical. When I did that in this branch the arrays were equal (see latest commit) :) |
… the data are checked)
abooton
added a commit
to abooton/iris
that referenced
this pull request
Jan 9, 2020
* pr/3623: PI-2472: Update area weighted regridder to accept different dim data (SciTools#3625) PI-2472: Fix issue related to comparison / equality in regridding code (SciTools#3624) Remove unused variables in regridding code (SciTools#3620) Add docstring and what's new (SciTools#3619) Move calculation of area weights from perform to prepare (SciTools#3617) PI-2472: Refactor AreaWeightedRegridder (SciTools#3606) Test for AreaWeightedRegridder (SciTools#3604) Split regrid_area_weighted_rectilinear_src_and_grid into prepare and perform (SciTools#3601)
abooton
pushed a commit
to abooton/iris
that referenced
this pull request
Jan 9, 2020
* Add tests for AreaWeightedRegridder
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull requests adds some tests for AreaWeightedRegridder.
The
test_multiple_src_on_same_gridtest creates two source cubes on the same grid with different values. One of the sources cubes is used to instantiateAreaWeightedRegridder, then both source cubes are regridded. This test will ensure the regridding still works as expected once the refactoring (including caching the weights) is complete.